package com.hzvdvmc.autosale.constant;

/**
 * Created by william on 2017/12/17.
 * 指令枚举
 */

public enum CmdEnum {
    START("48", "包头第一个"),
    KEEP_LIVE("39", "保活"),
    HEARTBEAT("40", "心跳"),
    APPLY_SIGN("30","申请签到"),
    SIGN("41", "签到"),
    PAY_SUCCESS("42", "支付成功"),
    PAY_SUCCESS_VERIFICATION("4A","支付成功的验证"),
    REPORT_SALE_RESULT("43", "上报出货结果"),
    PAY("44", "请求支付"),
    CONTROL_RESTART("50", "远程重启"),
    CONTROL_RESTART_VERI("80", "远程重启验证"),
    CONTROL_UPDATE("51", "远程升级"),
    CONTROL_UPDATE_VERI("81", "远程升级验证"),
    CONTROL_MODIFY_PRICE("52", "远程修改现金价格"),
    CONTROL_MODIFY_PRICE_VERI("82", "远程修改现金价格验证"),
    CONTROL_SUPPLEMENT("53", "远程补货"),
    CONTROL_SUPPLEMENT_VERI("83", "远程补货"),
    CONTROL_SUPPLEMENT_BY_ONE("54", "远程一键补货"),
    CONTROL_SUPPLEMENT_BY_ONE_VERI("84", "远程一键补货验证"),
    CONTROL_SHOPLIST_REFRESH("55", "商品上架表更新"),
    CONTROL_SHOPLIST_REFRESH_VERI("85", "商品上架表更新验证"),
    CONTROL_INVENTORY_SETTING("56", "最大库存设置"),
    CONTROL_INVENTORY_SETTING_VERI("86", "最大库存设置验证"),
    CONTROL_ADVERTISEMENT("57", "发布广告方案"),
    CONTROL_ADVERTISEMENT_VERI("87", "发布广告方案验证"),
    CONTROL_SYSTEM_PARAM("58", "系统参数更改"),
    CONTROL_SYSTEM_PARAM_VERI("88", "系统参数更改验证"),
    REPORT_CLEAR_ERROR("60", "人工清除故障"),
    REPORT_POWER_ON("61", "机器通电"),
    REPORT_POWER_OFF("62", "机器断电"),
    REPORT_OPEN_DOOR("63", "开门"),
    REPORT_CLOSE_DOOR("64", "关门"),
    REPORT_SUPPLEMENT_BY_ONE("65", "一键补货"),
    REPORT_SUPPLEMENT_BY_DETAIL("66", "详细补货"),
    REPORT_SHOPWAY_COMPACITY("67", "货道最大容量"),
    REPORT_SHOPWAY_LIST("68", "货道商品表"),
    REPORT_UPDATE_ADVERTISEMENT("69", "更新广告方案"),
    REQUEST_MODIFY_PARAMS("70", "参数需修改"),
    REQUEST_HAVE_SALE("71", "有出货"),
    REQUEST_MODIFY_PRICE("72", "有价格更改"),
    REQUEST_MODIFY_INVENTORY("73", "有库存更改"),
    REQUEST_UPDATE_ADVERTISEMENT("74", "广告方案更新"),
    REQUEST_MODIFY_SHOPSTATE("75", "有商品上架更新"),
    REPORT_ERROR("7E", "机器上报故障"),
    END("EE", "包尾");

    private String value;
    private String desc;

    CmdEnum(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public String getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }
}
